.class final Lnbisdk/ao$b;
.super Ljava/lang/Object;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lnbisdk/ao;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "b"
.end annotation


# instance fields
.field final synthetic cg:Lnbisdk/ao;

.field private fd:Z

.field private fe:J

.field private ff:Ljava/util/LinkedList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/LinkedList",
            "<",
            "Lnbisdk/pc;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method constructor <init>(Lnbisdk/ao;)V
    .locals 1

    iput-object p1, p0, Lnbisdk/ao$b;->cg:Lnbisdk/ao;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    iput-boolean v0, p0, Lnbisdk/ao$b;->fd:Z

    new-instance v0, Ljava/util/LinkedList;

    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V

    iput-object v0, p0, Lnbisdk/ao$b;->ff:Ljava/util/LinkedList;

    return-void
.end method

.method private cA()V
    .locals 2

    invoke-direct {p0}, Lnbisdk/ao$b;->cz()Lnbisdk/pc;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v1, p0, Lnbisdk/ao$b;->cg:Lnbisdk/ao;

    invoke-virtual {v1, v0}, Lnbisdk/ao;->a(Lnbisdk/pc;)V

    :cond_0
    return-void
.end method

.method private cz()Lnbisdk/pc;
    .locals 9

    const/4 v8, 0x1

    const/4 v7, 0x0

    :try_start_0
    iget-object v0, p0, Lnbisdk/ao$b;->ff:Ljava/util/LinkedList;

    invoke-virtual {v0}, Ljava/util/LinkedList;->remove()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnbisdk/pc;

    :goto_0
    invoke-virtual {v0}, Lnbisdk/pc;->E()Lnbisdk/hh;

    move-result-object v1

    if-eqz v1, :cond_2

    iget-object v2, p0, Lnbisdk/ao$b;->cg:Lnbisdk/ao;

    invoke-virtual {v2}, Lnbisdk/ao;->aj()Lnbisdk/gu;

    move-result-object v2

    invoke-virtual {v1}, Lnbisdk/hh;->getX()I

    move-result v3

    invoke-virtual {v1}, Lnbisdk/hh;->getY()I

    move-result v4

    invoke-virtual {v1}, Lnbisdk/hh;->fK()I

    move-result v5

    invoke-virtual {v1}, Lnbisdk/hh;->getSize()I

    move-result v6

    invoke-static {v3, v4, v5, v6}, Lnbisdk/lm;->c(IIII)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Lnbisdk/gu;->W(Ljava/lang/String;)Lnbisdk/lm;

    move-result-object v2

    if-eqz v2, :cond_2

    invoke-virtual {v1}, Lnbisdk/hh;->getType()Ljava/lang/String;

    move-result-object v1

    const-string v2, "road"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_0

    const-string v2, "satellite"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_0

    const-string v2, "hybrid"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_3

    :cond_0
    iget-object v2, p0, Lnbisdk/ao$b;->cg:Lnbisdk/ao;

    invoke-static {v2}, Lnbisdk/ao;->e(Lnbisdk/ao;)Lnbisdk/cc;

    move-result-object v2

    invoke-virtual {v2}, Lnbisdk/cc;->dj()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_3

    move v1, v7

    :goto_1
    if-eqz v1, :cond_2

    move v1, v8

    :goto_2
    if-nez v1, :cond_1

    iget-object v0, p0, Lnbisdk/ao$b;->ff:Ljava/util/LinkedList;

    invoke-virtual {v0}, Ljava/util/LinkedList;->remove()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnbisdk/pc;
    :try_end_0
    .catch Ljava/util/NoSuchElementException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    const/4 v0, 0x0

    :cond_1
    return-object v0

    :cond_2
    move v1, v7

    goto :goto_2

    :cond_3
    move v1, v8

    goto :goto_1
.end method


# virtual methods
.method final declared-synchronized b(Lnbisdk/pc;)V
    .locals 1

    monitor-enter p0

    :try_start_0
    iget-object v0, p0, Lnbisdk/ao$b;->ff:Ljava/util/LinkedList;

    invoke-virtual {v0, p1}, Ljava/util/LinkedList;->addLast(Ljava/lang/Object;)V

    invoke-virtual {p0}, Lnbisdk/ao$b;->cy()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method final declared-synchronized cB()V
    .locals 1

    monitor-enter p0

    const/4 v0, 0x0

    :try_start_0
    iput-boolean v0, p0, Lnbisdk/ao$b;->fd:Z

    invoke-direct {p0}, Lnbisdk/ao$b;->cA()V

    invoke-direct {p0}, Lnbisdk/ao$b;->cA()V

    invoke-virtual {p0}, Lnbisdk/ao$b;->cy()V

    iget-object v0, p0, Lnbisdk/ao$b;->cg:Lnbisdk/ao;

    invoke-static {v0}, Lnbisdk/ao;->c(Lnbisdk/ao;)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/View;->invalidate()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method final cy()V
    .locals 6

    const/4 v5, 0x0

    const/4 v4, 0x1

    iget-boolean v0, p0, Lnbisdk/ao$b;->fd:Z

    if-nez v0, :cond_2

    iget-object v0, p0, Lnbisdk/ao$b;->ff:Ljava/util/LinkedList;

    invoke-virtual {v0}, Ljava/util/LinkedList;->size()I

    move-result v0

    if-eqz v0, :cond_2

    move v0, v4

    :goto_0
    if-nez v0, :cond_0

    iget-boolean v0, p0, Lnbisdk/ao$b;->fd:Z

    if-eqz v0, :cond_3

    iget-object v0, p0, Lnbisdk/ao$b;->ff:Ljava/util/LinkedList;

    invoke-virtual {v0}, Ljava/util/LinkedList;->size()I

    move-result v0

    if-eqz v0, :cond_3

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iget-wide v2, p0, Lnbisdk/ao$b;->fe:J

    sub-long/2addr v0, v2

    const-wide/16 v2, 0x7d0

    cmp-long v0, v0, v2

    if-lez v0, :cond_3

    :cond_0
    move v0, v4

    :goto_1
    if-eqz v0, :cond_1

    iget-object v0, p0, Lnbisdk/ao$b;->cg:Lnbisdk/ao;

    invoke-static {v0}, Lnbisdk/ao;->c(Lnbisdk/ao;)Landroid/view/View;

    move-result-object v0

    new-instance v1, Lnbisdk/ao$b$1;

    invoke-direct {v1, p0}, Lnbisdk/ao$b$1;-><init>(Lnbisdk/ao$b;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->post(Ljava/lang/Runnable;)Z

    iput-boolean v4, p0, Lnbisdk/ao$b;->fd:Z

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lnbisdk/ao$b;->fe:J

    :cond_1
    return-void

    :cond_2
    move v0, v5

    goto :goto_0

    :cond_3
    move v0, v5

    goto :goto_1
.end method
